<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content=""/>
    <!--<meta name="author" content=""/>-->
    <link rel="icon" href="./img/asset-favicon.ico"/>
    <title>社交-吐槽</title>
    <!-- 页面 css js -->
    <!-- <script type="text/javascript" src="../../plugins/sui/sui.min.js"></script> -->
    <!-- <script type="text/javascript" src="../../plugins/bootstrap/dist/js/bootstrap.js"></script> -->
    <link rel="stylesheet" type="text/css" href="./plugins/normalize-css/normalize.css"/>
    <link rel="stylesheet" type="text/css" href="./plugins/yui/cssgrids-min.css"/>
    <link rel="stylesheet" type="text/css" href="./plugins/sui/sui.min.css"/>
    <link rel="stylesheet" type="text/css" href="./plugins/sui/sui-append.min.css"/>
    <link rel="stylesheet" type="text/css" href="./plugins/font-awesome/css/font-awesome.min.css"/>
    <link rel="stylesheet" type="text/css" href="./css/widget-base.css"/>
    <link rel="stylesheet" type="text/css" href="./css/widget-head-foot.css"/>
    <link rel="stylesheet" type="text/css" href="./plugins/bootstrap/dist/css/bootstrap.min.css"/>
    <link rel="stylesheet" type="text/css" href="./css/page-sj-spit-detail.css"/>
    <style>
        .comment-box .comment-form .input-a{
            display: block;
            width: 860px;
            height: 34px;
            margin: auto;
        }
        .input-box{
            width:800px;
            height: 30px;
            padding:auto;
            padding: 2px;
        }
        .add{
            color: #fff;
            margin: 4px;
            padding: 4px;
            background-color: #ea4a36;
        }

    </style>
    <script>
        var user_id = sessionStorage.user_id || localStorage.user_id;
        var token = sessionStorage.token || localStorage.token;
        if (!(user_id && token)) {
            location.href = '/person-loginsign.html';
        }
    </script>
</head>
<body>
<div class="wrapper">
    <!--引用组件-->
    <!--头部导航-->
    <div id="nav"></div>
    <!--引用组件-->
    <!--两列布局-->
    <div class="wrapper tc-detail">
        <div class="fl left-list" id="app">
            <div class="tc-detail">
                <!-- 标题区 -->
                <div class="detail-tit">
                    <div class="detail-author">
                        <a href="#">{{ spit.author.nickname }}</a> 发布
                    </div>
                    <div class="detail-content">
                        <p>{{ spit['content'] }}</p>
                        <img src="./img/widget-tc-detail.png" alt=""/>
                    </div>
                    <div class="detail-tool">
                        <ul>
                            <li><span class="star"><i class="fa fa-thumbs-o-up" aria-hidden="true"></i> {{ spit['like_count'] }}</span></li>
                            <li><a href="#" data-toggle="modal" data-target="#shareModal"><i class="fa fa-share-alt"
                                                                                             aria-hidden="true"></i> </a>
                            </li>
                            <li><a data-toggle="modal" data-target="#remarkModal"><i class="fa fa-commenting"
                                                                                     aria-hidden="true"></i> {{ spit.comment_count }}</a>
                            </li>
                        </ul>
                    </div>
                </div>
                <!-- 评论区 -->
                <div class="comment-box">
                    <div class="input-a">
                        <input  type="text" class="input-box" placeholder="写下你的评论" v-model="content" name="content">
                        <span class="add" @click="submit_comment">提交</span>
                    </div>
                </div>
                <div class="comment-area">
                    <div class="comment-tit">
                        <span>评论</span>
                    </div>
                    <ul class="comment-list">
                        <li v-for="com in comm">
                            <div class="item-photo">
                                <img style="height: 39px; width: 39px" :src="com.author.avatar_url" alt=""/>
                            </div>
                            <div class="item-content">
                                <p class="author"><a href="javascript:;">{{ com.author.nickname }}</a> 发布</p>
                                <p class="content">{{ com.content }}</p>
                            </div>
                            <div class="item-thumb">
                                <div>
                                    <span @click="like_comment(com.id)">
                                        <i class="fa fa-thumbs-o-up" aria-hidden="true"></i>
                                    </span> {{ com['like_count'] }}
                                </div>
                            </div>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="fl right-tag">
            <div class="block-btn">
                <p>来个匿名吐槽，发泄一下你心中的怒火吧！</p>
                <a class="sui-btn btn-block btn-share" href="./spit-submit.html" target="_blank">发吐槽</a>
            </div>
        </div>
        <div class="clearfix"></div>
    </div>
</div>

<script type="text/javascript" src="http://v2.uyan.cc/code/uyan.js"></script>
<script type="text/javascript" charset="utf-8" src="http://v3.jiathis.com/code/jia.js"></script>
<script src="./js/vue-2.5.16.js"></script>
<script src="./js/axios-0.18.0.min.js"></script>
<script src="./js/jquery-1.12.4.min.js"></script>
<script src="./js/base.js"></script>
<script src="./js/spit-detail.js"></script>
<script src="./js/layer/layer.js"></script>
<script type="text/javascript">
    $('#nav').load('/base_nav.html')
</script>
</body>
</html>